home *** CD-ROM | disk | FTP | other *** search
- /* Mods by G1EMM */
- #ifndef _SLIP_H
- #define _SLIP_H
-
- #ifndef _GLOBAL_H
- #include "global.h"
- #endif
-
- #ifndef _IFACE_H
- #include "iface.h"
- #endif
-
- #ifndef _SLHC_H
- #include "slhc.h"
- #endif
-
- #define _SLIP_MAX 5 /* Default maximum number of slip channels */
- extern int SLIP_MAX; /* Selected maximum number of slip channels */
-
- /* SLIP definitions */
- #define SLIP_ALLOC 100 /* Receiver allocation increment */
-
- #define FR_END 0300 /* Frame End */
- #define FR_ESC 0333 /* Frame Escape */
- #define T_FR_END 0334 /* Transposed frame end */
- #define T_FR_ESC 0335 /* Transposed frame escape */
-
- /* Slip protocol control structure */
- struct slip {
- struct iface *iface;
- char escaped; /* Receiver State control flag */
- #define SLIP_FLAG 0x01 /* Last char was a frame escape */
- #define SLIP_VJCOMPR 0x02 /* TCP header compression enabled */
- struct mbuf *rbp_head; /* Head of mbuf chain being filled */
- struct mbuf *rbp_tail; /* Pointer to mbuf currently being written */
- char *rcp; /* Write pointer */
- #if 0
- int16 rcnt; /* Length of mbuf chain */
- struct mbuf *tbp; /* Transmit mbuf being sent */
- #endif
- int16 errors; /* Receiver input errors */
- int type; /* Protocol of input */
- int (*send) (int,struct mbuf *); /* send mbufs to device */
- int (*get) (int); /* fetch input chars from device */
- struct slcompress *slcomp; /* TCP header compression table */
- struct iface *kiss[16]; /* sub nodes AX25 only */
- int rx; /* set if a frame is being received */
- int polled; /* Indicate a polled kiss link */
- int usecrc; /* Should we use a CRC on a kiss link */
- char rxcrc; /* CRC for receiving polled frames */
- int tracepoll; /* set if outgoing poll requests are to display in trace */
- };
-
- /* In slip.c: */
- extern struct slip *Slip;
-
- void asy_rx (int xdev,void *p1,void *p2);
- int slip_raw (struct iface *iface,struct mbuf *data);
- int slip_send (struct mbuf *bp,struct iface *iface,uint32 gateway,int prec,
- int del,int tput,int rel);
- void slip_status (struct iface *iface);
-
- #endif /* _SLIP_H */
-